<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>添加电影</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f7fc;
            margin: 0;
            padding: 0;
        }

        .container {
            width: 50%;
            margin: 50px auto;
            background-color: white;
            padding: 30px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
        }

        h1 {
            text-align: center;
            color: #3498db;
        }

        form {
            display: flex;
            flex-direction: column;
        }

        label {
            margin-bottom: 8px;
            font-weight: bold;
        }

        input[type="text"] {
            padding: 10px;
            font-size: 14px;
            border-radius: 4px;
            border: 1px solid #ccc;
            margin-bottom: 15px;
        }

        input[type="submit"] {
            padding: 10px;
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        input[type="submit"]:hover {
            background-color: #2980b9;
        }

        a {
            text-align: center;
            color: #3498db;
            text-decoration: none;
            display: block;
            margin-top: 20px;
        }

        a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>

<div class="container">
    <h1>添加电影</h1>
    <form action="movie?action=add" method="post">
        <label for="name">电影名称:</label>
        <input type="text" id="name" name="name" required/><br/>

        <label for="director">导演:</label>
        <input type="text" id="director" name="director" required/><br/>

        <label for="genre">类型:</label>
        <input type="text" id="genre" name="genre" required/><br/>

        <label for="releaseDate">上映日期:</label>
        <input type="text" id="releaseDate" name="releaseDate" required/><br/>

        <input type="submit" value="添加电影"/>
    </form>
    <a href="movie?action=list">返回电影列表</a>
</div>

</body>
</html>
